<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<div style="overflow-x:auto;">
<table class="display" id="example" style="width: 3000px">
	<thead>
		<tr>
			<th><strong>工号</strong></th>
			<th><strong>考勤号码</strong></th>
			<th><strong>姓名</strong></th>
			<th><strong>职务</strong></th>
			<th><strong>上班天数</strong></th>
			<th><strong>应出天数</strong></th>
			<th><strong>应出小时</strong></th>
			<th><strong>应出次数</strong></th>
			<th><strong>实出天数</strong></th>
			<th><strong>实出小时</strong></th>
			<th><strong>实出次数</strong></th>
			<th><strong>旷工天数</strong></th>
			<th><strong>旷工次数</strong></th>
			<th><strong>迟到天数</strong></th>
			<th><strong>迟到次数</strong></th>
			<th><strong>早退天数</strong></th>
			<th><strong>早退次数</strong></th>
			<th><strong>应签到次数</strong></th>
			<th><strong>未签到次数</strong></th>
			<th><strong>应签退次数</strong></th>
			<th><strong>未签退次数</strong></th>
			<th><strong>休息日数</strong></th>
			<th><strong>节假日数</strong></th>
			<th><strong>早加班日数</strong></th>
			<th><strong>早加班次数</strong></th>
			<th><strong>晚加班日数</strong></th>
			<th><strong>晚加班次数</strong></th>
			<th><strong>平时实际加班时间</strong></th>
			<th><strong>周日加班日数</strong></th>
			<th><strong>周日加班次数</strong></th>
			<th><strong>节日加班日数</strong></th>
			<th><strong>节日加班次数</strong></th>
			<th><strong>请假日数</strong></th>
			<th><strong>请假次数</strong></th>
		</tr>
	</thead>

	<tbody>
		<s:if test="#request.attendances == null || #request.attendances.size() <= 0">
			<tr class="gradeX"> <td colspan="7">暂无数据</td> </tr>
		</s:if>
		<s:else>
			<s:iterator value="#request.attendances" var="a" status="sta">
				<s:if test="#sta.even"> <tr class="gradeA"> </s:if> <s:else> <tr class="gradeC"> </s:else>
				<td>${a.employeeinfoWork.workNo}</td>
				<td>${a.employeeinfoWork.baseId.salaryNo}</td>
				<td>${a.employeeinfoWork.baseId.name}</td>
				<td>${a.employeeinfoWork.duty.dutyName}</td>
				<td>${a.allDays}</td>
				<td>${a.shouldDays}</td>
				<td>${a.shouldHours}</td>
				<td>${a.shouldTimes}</td>
				<td>${a.realDays}</td>
				<td>${a.realHours}</td>
				<td>${a.realTimes}</td>
				<td>${a.awayDays}</td>
				<td>${a.awayTimes}</td>
				<td>${a.lateDays}</td>
				<td>${a.lateTimes}</td>
				<td>${a.leaveEarlyDays}</td>
				<td>${a.leaveEarlyTimes}</td>
				<td>${a.yqdTimes}</td>
				<td>${a.wqdTimes}</td>
				<td>${a.yqtTimes}</td>
				<td>${a.wqtTimes}</td>
				<td>${a.restDays}</td>
				<td>${a.holidayDays}</td>
				<td>${a.zOvertimeDays}</td>
				<td>${a.zOvertimeTimes}</td>
				<td>${a.wOvertimeDays}</td>
				<td>${a.wOvertimeTimes}</td>
				<td>${a.psOvertimeTimes}</td>
				<td>${a.zrOvertimeDays}</td>
				<td>${a.zrOvertimeTimes}</td>
				<td>${a.jrOvertimeDays}</td>
				<td>${a.jrOvertimeTimes}</td>
				<td>${a.qjDays}</td>
				<td>${a.qjTimes}</td>
				</tr>
			</s:iterator>
		</s:else>
	</tbody>
</table>
</div>
<p>
    <%@ include file="/WEB-INF/pages/common/main_orgtab_pager.jsp" %>
</p>

<script type="text/javascript">
    function pageTo(url){
        $.ajax(url, {
            type: "POST",
            data:{"organizationId":"${organizationId}", "year":"${year}", "month":"${month}"},
            dataType:"html",
            cache:false,
            success:function(a) {
                var obj = $("#windown-content");
                obj.html("");
                obj.append(a);
            },
            complete:function() {
            }
        });
    }
</script>